﻿@model ScmSafetyassessmentViewModel
@{
    Layout = null;
    ViewBag.Title = "安全考核查看";
}

<form method="post" action="demo/common/ajaxDone.html" class="pageForm required-validate" onsubmit="return validateCallback(this)">
    <div class="pageContent">
        <div class="pageFormContent" layouth="60">
            <dl>
                <dt style="text-align: right">考核机构：</dt>
                <dd>
                    @Html.TextBoxFor(m => m.TheSafetyassessmentInfo.Sa_DepartmentName, new { @readonly = "readonly" })</dd>
            </dl>
            <dl>
                <dt style="text-align: right">考核类型：</dt>
                <dd>
                    @Html.TextBoxFor(m => m.TheSafetyconstructiondicInfo.Scd_Name, new { @readonly = "readonly" })</dd>
            </dl>
            <dl>
                <dt style="text-align: right">考核日期：</dt>
                <dd>
                    @Html.TextBoxFor(m => m.TheSafetyassessmentInfo.Sa_AssessmentTime,
                    new { @readonly = "readonly", Value = Model.TheSafetyassessmentInfo.Sa_AssessmentTime.ToString("yyyy-MM-dd") })</dd>
            </dl>
            <dl>
                <dt style="text-align: right">安全考核：</dt>
                <dd>
                    @Html.TextBoxFor(m => m.TheSafetyassessmentInfo.Sa_Title, new { @readonly = "readonly", @size = "60" })</dd>
            </dl>
            <div class="divider"></div>
            <h3 class="contentTitle">被考核单位</h3>
            <div class="tabs" style="text-align: center;">
                <div class="tabsHeader">
                    <div class="tabsHeaderContent">

                        <ul>
                            <li class="selected"><a href="javascript:void(0)"><span>被考核单位</span></a></li>
                        </ul>
                    </div>
                </div>
                <div class="tabsContent" style="height: 350px;">
                    <div>
                        <table class="table">
                            <thead>
                                <tr>
                                    <th width="30">序号</th>
                                    <th width="150">标段</th>
                                    <th width="400">单位名称</th>
                                    <th width="110">考核得分</th>
                                    <th width="30">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                @for (int index = 0; index < Model.TheAssessmentunitList.Count; index++)
                                {
                                    <tr>
                                        <td>@(index + 1)</td>
                                        <td>@Model.TheAssessmentunitList[index].Au_Section</td>
                                        <td>@Model.TheAssessmentunitList[index].Au_UnitName</td>
                                        <td>@Model.TheAssessmentunitList[index].Au_Score</td>
                                        <td>
                                            <a title="查看分项得分" mask="true" target="dialog" width="900" height="500" rel="fj_fx" href="@Url.Action("SafeAssessmentItemDetail", "ScmSafeAssessment", new { sa_id = Model.TheAssessmentunitList[index].Sa_ID, au_id = Model.TheAssessmentunitList[index].Au_ID })" class="btnLook">查看分项得分</a>
                                        </td>
                                    </tr>
                                }

                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="tabsFooter">
                    <div class="tabsFooterContent"></div>
                </div>
            </div>
        </div>

        <div class="formBar">
            <ul>
                <li>
                    <button type="button" class="close btn btn-default btn-sm">关闭</button>
                </li>
            </ul>
        </div>

    </div>
</form>
